import request from '@/utils/request'

// 查询牧畜信息列表
export function listLivestocks(query) {
  return request({
    url: '/system/livestocks/list',
    method: 'get',
    params: query
  })
}

// 查询牧畜信息详细
export function getLivestocks(id) {
  return request({
    url: '/system/livestocks/' + id,
    method: 'get'
  })
}

// 新增牧畜信息
export function addLivestocks(data) {
  return request({
    url: '/system/livestocks',
    method: 'post',
    data: data
  })
}

// 修改牧畜信息
export function updateLivestocks(data) {
  return request({
    url: '/system/livestocks',
    method: 'put',
    data: data
  })
}

// 删除牧畜信息
export function delLivestocks(id) {
  return request({
    url: '/system/livestocks/' + id,
    method: 'delete'
  })
}
